package cn.v2tila.rsosa.student.service.serviceImpl;

import cn.v2tila.rsosa.student.entity.ClassEntity;
import cn.v2tila.rsosa.student.jpa.ClassJPA;
import cn.v2tila.rsosa.student.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author v2tila on 16:21 2019/2/25
 */
@Service
public class ClassServiceImpl implements ClassService {
    @Autowired
    private ClassJPA classJPA;
    public ClassEntity findByNo(String no) {
        return classJPA.findByNo(no);
    }

    @Override
    public ClassEntity findByNoAndSchoolNoAndCollegeNo(String no, String schoolNo, String collegeNo) {
        return classJPA.findByNoAndSchoolNoAndCollegeNo(no, schoolNo, collegeNo);
    }

    @Override
    public ClassEntity findByNameAndSchoolNoAndCollegeNo(String name, String schoolNo, String collegeNo) {
        return classJPA.findByNameAndSchoolNoAndCollegeNo(name, schoolNo, collegeNo);
    }
}
